import java.util.Arrays;

public class TheThreeOfUs {
    public static void main(String[] args) {

 //       int[] arr = { 2, 6, 4, 1 };
        int[] arr = { 1, 2, 34, 3, 4, 5, 7, 23, 12 };
        System.out.println(theThreeOfUs(arr));
    }

    public static boolean theThreeOfUs(int[] a) {
        boolean back = false;
        int i = 0;
        int paragon = 0;

        for (i = 0; i < a.length; i++) {
            if (a[i] % 2 == 0) {
                continue;
            } else if (i < a.length - 3){
                for (int j = i; j < i + 3; j++) {
                    if (a[j] % 2 == 0) {
                        break;
                    }

                    if (j == i + 2) {
                        paragon = 1;
                    }
                }
            } else {
                break;
            }

            if (paragon == 1) {
                back = true;
                break;
            }
        }

        return back;
    }
}
